<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./WEB-INF/includes/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="metadata">
	<f:metadata>
            <f:event type="preRenderView" listener="#{markReviewBacking.fillForm(param.action)}"/>
	</f:metadata>
    </ui:define>
    <ui:define name="title">
        同济大学学生成绩复核申请表--OfficeBoost System
    </ui:define>

    <ui:define name="content">
        <h:form>
            <font size="3" color="blue">
            <h:outputLabel value="学生成绩复核申请表"/>
            </font>
            <h:panelGrid columns="2" frame="hsides">
                <h:outputLabel value="申请人"/>
                <h:outputText value="#{markReviewBacking.name}" id="name"/>
                <h:outputLabel value="学号"/>
                <h:outputText value="#{markReviewBacking.ID}"  id="ID" />
                <h:outputLabel value="专业"/>
                <h:inputText value="#{markReviewBacking.major}" id="major" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="所在院系"/>
                <h:inputText value="#{markReviewBacking.school}" id="school" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="现年级"/>
                <h:inputText value="#{markReviewBacking.grade}" id="grade" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="任课教师"/>
                <h:inputText value="#{markReviewBacking.teacher}" id="teacher" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="复核课程考核时间"/>
                <h:inputText value="#{markReviewBacking.test_time}" id="test_time" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="考场"/>
                <h:inputText value="#{markReviewBacking.test_room}" id="test_room" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="复核课程考核性质"/>
                <h:selectOneRadio value="#{markReviewBacking.kind_of_test}" id="kind_of_test" readonly="#{markReviewBacking.disabled[0]}">
                    <f:selectItem itemLabel="正常" itemValue="normal"/>
                    <f:selectItem itemLabel="重修" itemValue="repeat"/>
                    <f:selectItem itemLabel="重考" itemValue="make-up"/>
                </h:selectOneRadio>
                <h:outputLabel value="原成绩"/>
                <h:inputText value="#{markReviewBacking.original_mark}" id="original_mark" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="申请理由"/>
                <h:inputTextarea value="#{markReviewBacking.reason}" rows="8" cols="40" id="reason" readonly="#{markReviewBacking.disabled[0]}"/>
                <h:outputLabel value="学生所在院系教务科意见"/>
                <h:inputTextarea value="#{markReviewBacking.student_edu_office_opinion}" rows="8" cols="40" readonly="#{markReviewBacking.disabled[1]}"
                                 id="student_edu_office_opinion"/>
               
               
                
                <h:outputLabel value="开课院系教务科意见"/>
                <h:inputTextarea value="#{markReviewBacking.class_edu_office_opinion}" rows="8" cols="40" readonly="#{markReviewBacking.disabled[2]}" 
                                 id="class_edu_office_opinion"/>
             
               
                
                <h:outputLabel value="开课院系意见"/>
                <h:inputTextarea value="#{markReviewBacking.class_school_opinion}" rows="8" cols="40"  id="class_school_opinion" 
                                 disabled="#{markReviewBacking.disabled[3]}"/>
               
                <h:outputLabel value="复核结果"/>
                <h:inputTextarea value="#{markReviewBacking.result}" rows="8" cols="40" readonly="#{markReviewBacking.disabled[4]}" id="result"/>

             </h:panelGrid>
           
                <h:selectOneRadio value="#{markReviewBacking.decision}" >
                    <f:selectItem itemLabel="同意" itemValue="agree"/>
                    <f:selectItem itemLabel="拒绝" itemValue="refuse"/>
                </h:selectOneRadio>
           
            <h:commandButton value="提交" action="#"/>
        </h:form>
    </ui:define>



</ui:composition>
